import { lSystemPoints } from '../algorithm/lsystem.js'
import { _path } from './path.js'
import { _props } from "./canvas.js";

export const lsystem = (ctx, options, props) => {
    let points = lSystemPoints(options)
    ctx.save();
    ctx.beginPath()
    _props(ctx, props)
    _path(ctx, {
        ...options,
        points
    }, props)
    ctx.restore();
}
